// @ts-ignore
/* eslint-disable */
import request from '@/utils/request.ts'

/** 此处后端没有提供注释 POST /subscription/subscribeTeam/${param0} */
export async function subscribeTeam(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.subscribeTeamParams,
  body: API.SubscriptionRequestDTO,
  options?: { [key: string]: any }
) {
  const { teamId: param0, ...queryParams } = params
  return request<API.BaseResponseBoolean>(`/subscription/subscribeTeam/${param0}`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    params: { ...queryParams },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /subscription/unsubscribeTeam/${param0} */
export async function unsubscribeTeam(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.unsubscribeTeamParams,
  options?: { [key: string]: any }
) {
  const { teamId: param0, ...queryParams } = params
  return request<API.BaseResponseBoolean>(`/subscription/unsubscribeTeam/${param0}`, {
    method: 'DELETE',
    params: { ...queryParams },
    ...(options || {}),
  })
}
